<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <ul class="nav nav-tabs">
                <li class="active"><a href="">职位列表</a></li>
                <li><a href="{:U('Admin/Job/add')}" >添加职位</a></li>
            </ul>
        </div>

        <div class="tab-content mod-body">
            <div class="tab-pane active" id="list">
                <div class="table-responsive">

                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>职位名称</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <form action="{:U('Admin/Job/edit')}" method="post">
                        <!--<form id="jobs_form" action="{:U('Admin/Job/edit')}" method="post" onsubmit="return false">-->
                            <foreach name="jobData" item="vo">
                                <tr>
                                    <td>{$vo['id']}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-12">
                                                <input class="job-title form-control" type="text" name="job_list[{$vo['id']}]" value="{$vo['name']}">
                                            </div>
                                        </div>
                                    </td>
                                    <!--<td><a onclick="AWS.dialog(&#39;confirm&#39;, {&#39;message&#39;: &#39;确认删除?&#39;}, function(){AWS.ajax_request(G_BASE_URL + &#39;/admin/ajax/remove_job/&#39;, &#39;id=1&#39;);}); " class="icon icon-trash md-tip" data-toggle="tooltip" title="" data-original-title="删除"></a></td>-->
                                    <td><a href="{:U('Admin/Job/delete',array('id'=>$vo['id']))}" onclick="return confirm('确定删除吗？');" class="icon icon-trash md-tip" data-toggle="tooltip" title="" data-original-title="删除"></a></td>
                                </tr>
                            </foreach>

                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="3">
                                <input type="submit" value="保存设置" class="btn btn-primary center-block">
                            </td>
                        </tr>
                        </tfoot>
                        </form>
                    </table>

                </div>
            </div>

            <!--<div class="tab-pane" id="add">-->
                <!--<div class="table-responsive">-->
                    <!--<form method="post" action="http://127.0.0.1/wenda/?/admin/ajax/add_job/" onsubmit="return false;" id="new_job_form" class="form-horizontal" role="form">-->
                        <!--<div class="form-group">-->
                            <!--<span class="col-sm-2 col-xs-3 control-label">添加新职位:</span>-->
                            <!--<div class="col-sm-5 col-xs-8">-->
                                <!--<textarea class="form-control textarea" name="jobs" rows="5"></textarea>-->

                                <!--<span class="help-block">一行一个职位名称</span>-->
                            <!--</div>-->
                        <!--</div>-->

                        <!--<div class="form-group">-->
                            <!--<div class="col-sm-offset-2 col-sm-5 col-xs-8">-->
                                <!--<button type="button" onclick="AWS.ajax_post($(&#39;#new_job_form&#39;));" class="btn btn-primary">保存设置</button>-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</form>-->
                <!--</div>-->
            <!--</div>-->
        </div>
    </div>
</div>